package tester;
import java.io.IOException;
import java.rmi.RemoteException;

import main.DBmanager;
import main.FileOperator;

public class DBmanagerTester {

	private static final int ROWS = 20;
	private static final int COLUMNS = 25;
	private static final boolean VERBOSE = false;

	public static void main(String[] args) throws RemoteException, IOException {
		DBmanager database = new DBmanager();
		
		//failureTester(database);
		getTheaterTester(database);
	}

	public static void failureTester(DBmanager database) throws RemoteException {
		database.falha();
		System.out.println("Esta em falha?: "+database.isInFailure());
	}
	
	public static void getTheaterTester(DBmanager database) throws IOException {
		if(database.getTheater("teatro15") == null)
			System.out.println("FALHOU");
		else
			System.out.println("FUNCIONOU");
		
	}
}
